package com.springbooti18n.config;

import java.util.List;

/**
 * xufan
 * 2019/1/5
 */
//@Component
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class I18nException extends Error {

    String messageKey;
    /**
   附加显示信息
     */
    List<Object> addMessage;

    public  static I18nException  Buid(){
       return new  I18nException();
    }

    public I18nException() {
        super();
    }

    public I18nException(String message) {
        super(message);
    }

    public I18nException(String message, Throwable cause) {
        super(message, cause);
    }

    public I18nException(Throwable cause) {
        super(cause);
    }

    public String getMessageKey() {
        return messageKey;
    }

    public I18nException setMessageKey(String messageKey) {
        this.messageKey = messageKey;
        return  this;
    }

    public List<Object> getAddMessage() {
        return addMessage;
    }

    public I18nException setAddMessage(List<Object> addMessage) {
        this.addMessage = addMessage;
        return  this;
    }
}
